.header {
  background-color: #87ceeb;
  padding: 15px;
  text-align: center;
  position: relative;
}

.header h1 {
  color: white;
  margin: 0;
  font-size: 34px;
}

.back-link {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff6b6b;
  text-decoration: none;
  font-size: 14px;
}

.pagination-container {
  width: 1200px;
  margin: 0 auto;
  padding: 15px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.page-btn {
  padding: 5px 15px;
  background-color: #87ceeb;
  border: 1px solid #ddd;
  color: white;
  cursor: pointer;
}

.page-btn:hover {
  background-color: #e9ecef;
}

.current-page {
  width: 50px;
  text-align: center;
  padding: 5px;
}

.page-size {
  padding: 5px;
}

.goods-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.goods-item {
  border: 1px solid rgb(0, 0, 0);
  padding: 10px;
  position: relative;
  background: white;
}

.goods-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.goods-title {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.current-price {
  color: #ff4444;
  font-size: 20px;
  font-weight: bold;
}

.original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 14px;
}

.tag {
  position: absolute;
  top: 10px;
  padding: 2px 8px;
  color: white;
  font-size: 12px;
}

.hot-tag {
  background-color: #ff4444;
  right: 60px;
}

.sale-tag {
  background-color: #ff8800;
  right: 10px;
}
